﻿namespace Easy.Services.Entities
{
    /// <summary>
    /// User
    /// </summary>
    public partial class User : BaseEntity
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 密码盐
        /// </summary>
        public string PasswordSalt { get; set; }

        /// <summary>
        /// 简介
        /// </summary>
        public string Summary { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public int? Gender { get; set; }

        /// <summary>
        /// 登录错误次数
        /// </summary>
        public int? LoginErrorCount { get; set; } = 0;

        /// <summary>
        /// 登录总错误次数
        /// </summary>
        public int? LoginTotalCount { get; set; } = 0;

        /// <summary>
        /// 最后一次登录时间
        /// </summary>
        public DateTime LastLoginDate { get; set; } = DateTime.Now;

        /// <summary>
        /// 是否冻结0未冻结1冻结
        /// </summary>
        public int? IsFreeze { get; set; } = 0;

        /// <summary>
        /// 创建IP
        /// </summary>
        public string CreateIP { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string StaffPhoto { get; set; }
        /// <summary>
        /// 用户所在公司名
        /// </summary>
        public string Company { get; set; }

        /// <summary>
        /// 用户所在公司id
        /// </summary>
        public long? CompanyId { get; set; }

        public string City { get; set; }

        public string Mobile { get; set; }

        /// <summary>
        /// 员工聘用形式, 1正式, 2非正式
        /// </summary>
        public long? FormOfEmployment { get; set; }

        /// <summary>
        /// 员工入职日期, 格式: 2020-01-01
        /// </summary>
        public string TimeOfEntry { get; set; }
        /// <summary>
        /// 员工转正日期, 格式: 2020-01-01
        /// </summary>
        public string CorrectionTime { get; set; }
        /// <summary>
        /// 员工工号
        /// </summary>
        public string WorkNumber { get; set; }
        /// <summary>
        /// 员工部门名字
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 员工部门id
        /// </summary>
        public long? DepartmentId { get; set; }



    }
}
